package tianrun.ziguan.api.calculate.config.service.common.edit;

import tianrun.ziguan.api.calculate.config.dto.request.common.DeleteBody;
import tianrun.ziguan.api.calculate.config.dto.request.common.add.edit.AddOrEditBody;
import tianrun.ziguan.api.calculate.config.dto.request.common.add.edit.SaveBody;
import tianrun.ziguan.api.calculate.config.dto.request.common.list.ListBody;

import java.util.List;
import java.util.Map;

public interface DealService {

    void before(SaveBody body);

    SaveBody handler(AddOrEditBody body);

    String tableName();

    void after(SaveBody body);

    void delBefore(DeleteBody body);

    void listAfter(List<Map<String, Object>> result);

    void delAfter(DeleteBody body);

    void infoAfter(Map<String, Object> bean);
}
